package com.pandas.community.dao;

import com.pandas.community.Utils.CommunityConstant;
import com.pandas.community.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Liu Jiangang Cotter on 2021/3/28.
 */
@Mapper
@Repository
public interface CommentMapper {

    List<Comment> selectCommentByEntity(int entityType, int entityId, int offset, int limit);

    int selectCommentAmount(int entityType, int entityId);

    int addComment(Comment comment);

    Comment selectCommentById(int id);
}
